<template>
  <div>
    <ul class="nav">
      <li v-for="navItem in nav" :key="navItem">
        {{navItem}}
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "cycle-render",
  data(){
    return{
      nav: ['home', 'shop', 'contact', 'about', 'name', 'mroe', 'histroy'],
    }
  }
}
</script>

<style scoped>
* {
  padding: 0;
  margin: 0;
}
ul {
  width: 100%;
  height: 40px;
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background: yellowgreen;
}
ul li {
  width: 20%;
  height: 100%;
  color: white;
  line-height: 40px;
  text-align: center;
  text-transform: uppercase; /*大写转换*/
}
</style>
